package org.example.spring03.config;


import com.alibaba.fastjson.JSONObject;
import org.example.spring03.entity.Person;
import org.springframework.context.annotation.*;

@ComponentScan({"org.example.spring03"})
@Configuration
@Import(JSONObject.class)
public class AppConfig {


@Scope("singleton")
@Lazy
@Bean
public Person person(){
    return new Person();
}
   }
